Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / WorkbookSet Class / AddCustomList Method / AddCustomList(IRange,Nullable<Boolean>) Method
Specifies the source data
true to create a custom list from each row in the range. false to create a custom list from each column in the range.

If this argument is omitted and there are more rows than columns (or an equal number of rows and columns) in the range, the custom list is created from each column in the range.

If this argument is omitted and there are more columns than rows in the range, the custom list is created from each row in the range.



In This Topic
    AddCustomList(IRange,Nullable<Boolean>) Method
    In This Topic
    the list that you are trying to add already exists
    Syntax
    'Declaration
     
    
    Public Overloads Function AddCustomList( _
       ByVal listArray As IRange, _
       Optional ByVal byRow As Nullable(Of Boolean) _
    ) As Boolean
    'Usage
     
    
    Dim instance As WorkbookSet
    Dim listArray As IRange
    Dim byRow As Nullable(Of Boolean)
    Dim value As Boolean
     
    value = instance.AddCustomList(listArray, byRow)
    public bool AddCustomList( 
       IRange listArray,
       Nullable<bool> byRow
    )

    Parameters

    listArray
    Specifies the source data
    byRow
    true to create a custom list from each row in the range. false to create a custom list from each column in the range.

    If this argument is omitted and there are more rows than columns (or an equal number of rows and columns) in the range, the custom list is created from each column in the range.

    If this argument is omitted and there are more columns than rows in the range, the custom list is created from each row in the range.

    Return Value

    true if the custom list is added; otherwise, false if the list that you are trying to add already exists.
    See Also